<?php
/**
 * @file			config.php
 * @CopyRight		(C)1996-2099 SINA Inc.
 * @Project			Xweibo
 * @Author			xionghui <xionghui1@staff.sina.com.cn>
 * @Create Date:	2010-06-08
 * @Modified By:	xionghui/2010-11-15
 * @Brief			系统配置文件
 */
//----------------------------------------------------------------------
/// 产品名称
define('WB_SOFT_NAME', 	'ziyouSubsite');
/// 当前版本号
define('WB_VERSION', 	'1.0');
/// 项目号 用于统计
define('WB_PROJECT', 	'subzy');
// cookie_id,访问者访问的唯一标识,用于统计 
if (!isset($_COOKIE['x3w4b'])) {
	$cid = md5(rand().microtime(true));
	setCookie('x3w4b', $cid, time()+630721230);
	$_COOKIE['x3w4b'] = $cid;
}
//define('WB_C_ID', $_COOKIE['x3w4b']);

/// 系统默认的模块路由 当入口文件中未定义时使用如下值
if ( !defined('R_DEF_MOD') ){define('R_DEF_MOD', "index");}
//----------------------------------------------------------------------
// 本地安全 solt string
define('AUTH_KEY',			'XMBLOG654321');
/// 站点默认语言名称（目录）
define('SITE_DEFAULT_LANG',	'zh_cn');
/// 站点皮肤  CSS 文件目录名称的 前缀
define('SITE_SKIN_CSS_PRE',	'skin_');
/// 站点皮肤 CSS 自定义皮肤目录
define('SITE_SKIN_CSS_CUSTOM',	'skin_define');
/// 站点皮肤  CSS 文件目录名称的 后缀
/// 当用户和系统都没有设置,且不能从预览变量路由中取得CSS皮肤值的时候即为当前值
define('SITE_SKIN_TYPE',	'default');
/// 站点皮肤  模板目录名称（目录）
define('SITE_SKIN_TPL_DIR',	'1');
/// 预览皮肤时的 变量路由
define('SITE_SKIN_PREV_V',	'R:prev_skin');
/// 皮肤配置文件名称
define('SKIN_CONFIG',		'skinconfig.ini');
/// 皮肤预览图片名称
define('SKIN_PRE_PIC',		'thumbpic.png');

/// 字体目录
define('WB_FONT_PATH',			P_VAR_DATA . '/fonts');
/// 微博列表默认显示条数
define('WB_API_LIMIT',			20);



/// 默认时区
if (!defined('APP_TIMEZONE_OFFSET')) {
	define('APP_TIMEZONE_OFFSET',	8);
}
/// 本地时间，与标准时间的差，单位为秒，当本地时钟较快时为　负数　，较慢时为　正数　, 默认为　０　即本地时间是准确的
if (!defined('LOCAL_TIME_OFFSET')) {
	define('LOCAL_TIME_OFFSET',		0);
}
/// 经过较准的，本地时间戳　所有使用APP_LOCAL_TIMESTAMP　的地方用这个常替代，防止，无法更改服务器时间导致的问题
if (!defined('APP_LOCAL_TIMESTAMP')) {
	define('APP_LOCAL_TIMESTAMP',	time() + LOCAL_TIME_OFFSET);
}

/// 本程序中的HTTP  USER_AGENT 代理
if (!defined('XWB_HTTP_USER_AGENT')) {
	if (XWB_SERVER_ENV_TYPE === 'common') {
		define('XWB_HTTP_USER_AGENT',	isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '');
	} else {
		define('XWB_HTTP_USER_AGENT',	'SAE/fetchurl-' . SAE_ACCESSKEY);// . ' ' . $_SERVER['HTTP_USER_AGENT']);
	}
}

/// 定时程序锁文件前缀
define('CRON_LOCK_FILE_PREFIX', 'cron_lock_');
//----------------------------------------------------------------------
/// API 相关
/// 微博 api url
define('WEIBO_API_URL', 	'http://i.api.weibo.com/');
/// sinaurl.cn 地址信息查询API地址
define('SINAURL_INFO', 		'http://weibo.com/mblog/sinaurl_info.php');
///新浪个人首页
define('SINAURL_PROFILE',	'http://weibo.com/%s');
/// 微博表情 url
define('WB_EMOTICONS_URL',	'http://timg.sjs.sinajs.cn/miniblog2style/images/common/face/basic/');

//----------------------------------------------------------------------
//----------------------------------------------------------------------
/// 数据表，管理员数据
define('T_ADMIN_USERS',	'admin_users');
/// 数据表，运营广告位数据
define('T_ADVERTISING',		'advertising');
/// 数据表，焦点图数据
define('T_FOCUS_MAP',		'focus_map');
/// 数据表，路书下载推荐
define('T_GUIDE_BOOK', 		'guide_book');
/// 数据表，热门景点推荐数据
define('T_HOT_SPOTS',		'hot_spots');
/// 数据表，首页头条推荐数据
define('T_HEADLINE',		'headline');
/// 数据表，推荐数据
define('T_RECOM_ITEM',		'recom_item');
/// 数据表，推荐行程数据
define('T_RECOM_STROKE',		'recom_stroke');
/// 数据表，推荐标签数据
define('T_RECOM_TAG',		'recom_tag');
/// 数据表，酒店首页微博推荐数据
define('T_HOTEL_WEIBO_RECOM',		'hotel_weibo_recom');
/// 数据表，酒店首页微博用户推荐数据
define('T_HOTEL_WUSER_RECOM',		'hotel_wuser_recom');
/// 数据表，酒店微话题数据
define('T_HOTEL_WTOPIC',		'hotel_wtopic');
//全站设置
define('T_SYS_CONFIG',  'sys_config');
define('T_USER_CONFIG',	'user_config');	//用户键值信息配置
define('T_USER_SHOW', 'user_show');		//达人馆
define('T_SHOW_LIST', 'show_list');		//达人列表
define('T_CRAWL_QUEUE', 'crawl_queue');	//专题、酒店等抓取队列
define('T_ITEM_GROUP', 'item_group');	//分组

//微博分享文案
define('T_FEED_TEMPLATE', 'feed_template');
/// 游记推荐表
define('T_RECOM_YOUJI', 'recom_youji');

/// 日志表, api表和http表单独分开
define('T_LOG_ERROR', 		'log_error');
define('T_LOG_INFO', 		'log_info');
define('T_LOG_API_ERROR', 	'log_error_api');
define('T_LOG_API_INFO', 	'log_info_api');
define('T_YOUJI',			'youji');
define('T_YOUJI_DRAFT',		'youji_draft');
define('T_SPECIAL',				'special');// 专题v2
define('T_SPECIAL_MOD_TPL',		'special_mod_tpl');// 专题v2 模块模板

//---------------------------------------------------------------------
/// 全局配置变量
$cfg = array();
//----------------------------------------------------------------------
/// 适配器选择器
$cfg['adapter'] = array(
	'io'		=> FILE_ADAPTER,
	'db'		=> DB_ADAPTER,
	'http'		=> HTTP_ADAPTER,
	'cache'		=> CACHE_ADAPTER,
	'mailer'	=> SMTP_ADAPTER,
	'account'	=> ACCOUNT_ADAPTER,
	'upload'	=> UPLOAD_ADAPTER,
	'auth'		=> AUTH_ADAPTER,
	'image' 	=> IMAGE_ADAPTER,
	'mail'		=> MAIL_ADAPTER,
	'log'		=> LOG_ADAPTER
);
//----------------------------------------------------------------------
/// 适配器初始化数据配置变量
$cfg['adapter_cfg'] = array();
$_adapter = &$cfg['adapter_cfg'];
//----------------------------------------------------------------------
$_adapter['db'] = array();
$_adapter['account']['dzUcenter'] = array(
	'homeUrl'		=>'',
	'home2'			=>''
);

//----------------------------------------------------------------------
$_adapter['db'] = array();
$_adapter['db']['mysql'] = array(
	'host'	 => DB_HOST,
	'port'	 => DB_PORT,
	'user'	 => DB_USER,
	'pwd'	 => DB_PASSWD,
	'charset'=> DB_CHARSET,
	'tbpre'	 => DB_PREFIX,
	'db'	 => DB_NAME,
	'slaves' => array(
			array(
				'host'	 => DB_HOST_2,
				'port'	 => DB_PORT,
				'user'	 => DB_USER,
				'pwd'	 => DB_PASSWD,
				)
		)
);
//---------------------------------------------图片处理---------------------
$_adapter['image'] = array();
$_adapter['image']['sae'] = array();
//---------------------------------------------验证码---------------------
$_adapter['auth'] = array();
$_adapter['auth']['sae'] = array();
//----------------------------------------------------------------------
$_adapter['upload'] = array();
$_adapter['upload']['upload'] = array();
//----------------------------------------------------------------------
$_adapter['io'] = array();
$_adapter['io']['file'] = array();
$_adapter['io']['ftp']	= array();
//----------------------------------------------------------------------
$_adapter['http'] = array();
$_adapter['http']['curl'] 		= array();
$_adapter['http']['fsockopen'] 	= array();
$_adapter['http']['snoopy'] 	= array();
//----------------------------------------------------------------------
$_adapter['mail'] = array();
$_adapter['mail']['sae']		= array();
//----------------------------------------------------------------------
$_adapter['cache'] = array();
$_adapter['cache']['file'] 				= array(
	'baseDir'=>		P_VAR_CACHE,
	'pathLevel'=>	3,
	'nameLen'=>		2,
	'varName'=>		'__cache_data'
);
$_adapter['cache']['serialize'] 		= array(
	'baseDir'=>		P_VAR_CACHE,
	'pathLevel'=>	3,
	'nameLen'=>		2
);

$_adapter['cache']['xcache'] 			= array();
$_adapter['cache']['memcache'] 			= array( 'pconnect'=>false, 'servers'=>MC_HOST, 'keyPre'=>MC_PREFIX);
$_adapter['cache']['mutimemcache'] 		= array(
        'mc0' => array( //可以是多个MC服务，用空格隔开如　192.168.11.102:11211 192.168.11.103:11212
            'servers'  	=> '127.0.0.1:11211',
            'pconnect' 	=> false, 
			'memcached' => false, 
 			'keyPre'	=> MC_PREFIX,
			'sae_accesskey' => '021mkwn51l', //vyoujimc
        )
);
$_adapter['cache']['eaccelerator'] 		= array();
//----------------------------------------------------------------------
$_adapter['mail'] = array();
$_adapter['mail']['mail'] 	= array();
$_adapter['mail']['smtp']	= array();
//----------------------------------------------------------------------

$cfg['province_capital'] = array(
								1 => '北京',
								450 => '上海',
								88 => '深圳',
								449 => '天津',
								19 => '南京',
								26 => '杭州',
								448 => '重庆',
								60 => '厦门',
								3 => '哈尔滨',
								4 => '长春',
								39 => '吉林',
								7 => '沈阳',
								5 => '呼和浩特',
								9 => '石家庄',
								2 => '乌鲁木齐',
								14 => '兰州',
								11 => '西宁',
								16 => '西安',
								8 => '银川',
								17 => '郑州',
								13 => '济南',
								12 => '太原',
								18 => '合肥',
								21 => '武汉',
								24 => '长沙',
								20 => '成都',
								27 => '贵阳',
								31 => '昆明',
								32 => '南宁',
								15 => '拉萨',
								26 => '杭州',
								25 => '南昌',
								28 => '广州',
								29 => '福州',
								35 => '海口',
								34 => '香港',
								33 => '澳门'
							);
							
//星座
$cfg['astro'] =	array(
		array('id'=>1, 'name' => '白羊座', 'minDate' => '0321', 'maxDate' => '0419'),
		array('id'=>2, 'name' => '金牛座', 'minDate' => '0420', 'maxDate' => '0520'),
		array('id'=>3, 'name' => '双子座', 'minDate' => '0521', 'maxDate' => '0621'),
		array('id'=>4, 'name' => '巨蟹座', 'minDate' => '0622', 'maxDate' => '0722'),
		array('id'=>5, 'name' => '狮子座', 'minDate' => '0723', 'maxDate' => '0822'),
		array('id'=>6, 'name' => '处女座', 'minDate' => '0823', 'maxDate' => '0922'),
		array('id'=>7, 'name' => '天秤座', 'minDate' => '0923', 'maxDate' => '1023'),
		array('id'=>8, 'name' => '天蝎座', 'minDate' => '1024', 'maxDate' => '1122'),
		array('id'=>9, 'name' => '射手座', 'minDate' => '1123', 'maxDate' => '1221'),
		array('id'=>10, 'name' => '魔羯座', 'minDate' => '1222', 'maxDate' => '0119'),
		array('id'=>11, 'name' => '水瓶座', 'minDate' => '0120', 'maxDate' => '0218'),
		array('id'=>12, 'name' => '双鱼座', 'minDate' => '0219', 'maxDate' => '0320')							
	);
	
// cache　配置
$cfg['cacheCfg'] = array
	(	//cache前缀（名称）  mc=>使用的MC集　t=>此类缓存的有效时间　n=> 0非list缓存，　n 是LIST的最大个数, hit=>命中数/随机最大数，命中后自动更新缓存
    	
    	'custom'				=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>500),					// 自定义缓存
		'location'				=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>0, 'hit'=>'6/1000'),	// 省市缓存
		'youji_dis'				=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>0),					// 游记酷炫模式算法缓存
		'youji_craft'			=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>0),					// 某用户的游记草稿
		'spots_filter'			=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>0),					// 景点筛选条件缓存
		'item_group'			=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>0, 'hit'=>'8/1000'), 	// 分组缓存
		'special'				=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>0, 'hit'=>'10/1000'), // 专题缓存
		'special_trend'			=> array('mc'=>'mc0','t'=>60, 'zip'=>0, 'n'=>0, 'hit'=>'15/1000'), 		// 专题话题微博缓存
		'user_show'				=> array('mc'=>'mc0','t'=>86400, 'zip'=>0, 'n'=>0, 'hit'=>'8/1000'), 	// 自由鱼鱼馆用户缓存
		'show_list'				=> array('mc'=>'mc0','t'=>86400, 'zip'=>0, 'n'=>0), 					// 鱼鱼用户列表缓存
	
		// pagelet缓存
		'pgl_index'				=> array('mc'=>'mc0','t'=>86400, 'zip'=>0, 'n'=>0, 'hit'=>'8/1000'), 	// 首页pagelet缓存
	
		'report'				=> array('mc'=>'mc0','t'=>0, 'zip'=>0, 'n'=>0),           				// 上报
		'invite_event'			=> array('mc'=>'mc0','t'=>0, 'zip'=>0, 'n'=>400),         				// 上报
		'feed_template'			=> array('mc'=>'mc0','t'=>1296000, 'zip'=>0, 'n'=>0), 					// 微博分享文案缓存
		'guestbook_list'		=> array('mc'=>'mc0','t'=>0, 'zip'=>0, 'n'=>2000),      				// 留言板最新列表 
		'guestbook'				=> array('mc'=>'mc0','t'=>0, 'zip'=>0, 'n'=>0),           				// 留言板单条记录
		'sysconfig'				=> array('mc'=>'mc0','t'=>0, 'zip'=>0, 'n'=>0),           				// 全站配置
		'focus_map' 			=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 			// 焦点图数据缓存
		'advertising' 			=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 			// 广告运营位数据缓存
		'recom_hotspots_ids' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 1000), 		// 推荐热门景点ID列表缓存
		'recom_item_hotstroke' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 		// 热门行程推荐ID列表缓存
		'recom_item_homespotsarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 	// 首页景点文章推荐ID列表缓存
		'recom_item_chanspotsarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 	// 频道页景点文章推荐ID列表缓存
		'recom_item_htpgspotsarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 	// 酒店首页景点文章推荐ID列表缓存
		'recom_item_homehotelarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 	// 首页酒店文章推荐ID列表缓存
		'recom_item_chanhotelarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 	// 频道页酒店文章推荐ID列表缓存
		'recom_item_htpghotelarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 	// 酒店首页酒店文章推荐ID列表缓存
		'recom_item_homelynewsarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), // 首页旅游新闻推荐ID列表缓存
		'recom_item_chanlynewsarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), // 频道页旅游新闻推荐ID列表缓存
		'recom_item_htpglynewsarticle' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), // 酒店首页旅游新闻推荐ID列表缓存
		'recom_item_autofollowuser' => array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 500), 	// 自动关注用户ID列表缓存
		'recom_stroke' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 					// 推荐行程缓存
		'recom_tags' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 					// 推荐标签缓存，包括景点标签与游记标签
		'hotel_weibo_recom' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 			// 酒店首页微博推荐缓存
		'hotel_wuser_recom' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 			// 酒店首页微博用户推荐缓存
		'hotel_wtopic' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 					// 酒店首页微话题数据缓存
		'hotel_official_account' 	=> array('mc' => 'mc0', 't' => 21601, 'zip' => 0, 'n' => 0), 		// 酒店首页官方微博帐号数据缓存，缓存时间3小时
		'homepage_recoms' 	=> array('mc' => 'mc0', 't' => 1296000, 'zip' => 0, 'n' => 0), 				// 大首页的推荐数据缓存
	);
					
//管理员相关的SESSION索引
define('ADMIN_SESSION_UID', '__CLIENT_ADMIN_ID');
define('ADMIN_SESSION_UNAME', '__CLIENT_ADMIN_NAME');
define('ADMIN_SESSION_PERMISSIONS', '__CLIENT_ADMIN_PERMISSIONS');

//支持的相册服务
$cfg['albums_support']=array('sina'=>array('ident'=>'sina','title'=>'sina weibo','tab_class'=>'ico-sina-s1','tips'=>'新浪微博相册','api'=>array('getAlbums'=>array('3rd/sina/albums',array('count','page')),'getPhotos'=>array('3rd/sina/photos',array('album_id','count','page')))));

//支持的好友获取服务列表
$cfg['friend_support']=array(/*'local'=>array('enabled'=>FALSE,'title'=>'本地好友','api'=>array('getFriends'=>array('/friendships/friends',array('count','page')))),*/
							 'sina'=>array('enabled'=>TRUE,'cls'=>'ico-sina-s1','title'=>'新浪微博好友','api'=>array('getFriends'=>array('/3rd/sina/search_friends',array('q','count','page')))),
							 'qq'=>array('enabled'=>TRUE,'cls'=>'ico-qq-s1','title'=>'腾讯微博好友','api'=>array('getFriends'=>array('/3rd/qq/search_friends',array('q','count','page')))),
							 'renren'=>array('enabled'=>TRUE,'cls'=>'ico-rr-s1','title'=>'人人网','api'=>array('getFriends'=>array('/3rd/renren/search_friends',array('q','count','page')))));


//第三方用户连接
$cfg['3rd_link']=array('sina'=>"http://weibo.com/%s",'qq'=>"http://t.qq.com/%s",'renren'=>"http://www.renren.com/profile.do?id=%s");

//支持的微博检索服务
$cfg['wbTimeline_support']=array('sina'=>array('enabled'=>TRUE,'title'=>'新浪微博','api'=>array('timeline'=>array('/3rd/sina/statuses',array('since_id','count')))),
								 
								 'qq'=>array('enabled'=>TRUE,'title'=>'腾讯微博','api'=>array('timeline'=>array('/3rd/qq/statuses',array('latid','reqnum')))),
								 'renren'=>array('enabled'=>TRUE,'title'=>'人人网','api'=>array('timeline'=>array('/3rd/renren/statuses',array('latid','reqnum')))));


//支持的前端js读取设置userCfg列表
$cfg['remind_support']=array('yj_new',//新建游记时的提示
							 'yj_craft',//游记草稿提醒
							 'coin',
							 'face',
							 'footmark',
							 'youji',
							 'dynamic_recommend',
							 'youji_create_album',//发表有急事扩选画报提醒
							 'youji_album'//游记酷炫画报提示
					 );
$cfg['user_cfg_support']=array('remind'//用户提示
							   );
$cfg['keyword_replace']="***";//游记中替换敏感词的
//用于发游记时分享用的默认大图
$cfg['yj_share_pic_default']='img/default_album.png';

//景点所在地
$cfg['spots_cfg']['distance_type'] = array(1=>'市区',2=>'郊游',3=>'周边',4=>'国内');//,5=>'境外'
//景点类型
$cfg['spots_cfg']['type'] = array(
				1 => '湖泊',
				2 => '洞穴',
				3 => '道观',
				4 => '度假村',
				5 => '河流',
				6 => '园林',
				7 => '城墙',
				8 => '漂流',
				9 => '瀑布',
				10 => '泉潭',
				11 => '学校',
				12 => '滑雪',
				13 => '海滩岛屿',
				14 => '田野',
				15 => '桥',
				16 => '广场',
				17 => '山峰',
				18 => '古镇',
				19 => '石窟',
				20 => '自然保护区',
				21 => '碑塔亭楼',
				22 => '村落民居',
				23 => '草原',
				24 => '宫殿',
				25 => '故居',
				26 => '沙漠',
				27 => '陵墓',
				28 => '街道',
				29 => '峡谷',
				30 => '教堂',
				31 => '博物馆',
				32 => '森林',
				33 => '寺庙',
				34 => '主题公园',
				35 => '冰川',
				36 => '城堡',
				37 => '现代建筑',
				38 => '温泉',
				39 => '沼泽',
				40 => '遗址',
				41 => '其它'
				);
//公里数:100代表100及以下 300代表101-300公里 500代表301-500公里 800代表501-800公里 1000代表801公里以上
$cfg['spots_cfg']['distance'] = array('100'=>'100以下','300'=>'101-300公里','500'=>'301-500公里','800'=>'501-800公里','1000'=>'801公里以上');
//国内区域
$cfg['spots_cfg']['area'] = array(1=>'华北', 2=>'西北 ',3=>'西南', 4=>'华东', 5=>'华中', 6=>'东北', 7=>'华南', 8=>'港澳台');
//境外区域
$cfg['spots_cfg']['world_area'] = array(1=>'亚洲',2=>'欧洲',3=>'北美洲',4=>'大洋洲',5=>'非洲',6=>'南美洲');
//主题
$cfg['spots_cfg']['theme'] = array(
				'自然风光',
				'历史人文',
				'闲逛发呆',
				'美食小吃',
				'享乐刺激',
				'特产购物',
				'徒步',
				'摄影',
				'登山',
				'骑马',
				'高尔夫',
				'蜜月',
				'祈福',
				'垂钓',
				'赏花',
				'避暑',
				'露营',
				'攀岩',
				'划船'
			);
//适合人群
$cfg['spots_cfg']['people'] = array('老人','情侣','学生','上班族','背包客','儿童','家庭');
//优质游记分类
$cfg['youji_quality'] = array('type' => array(1 => '精品', 2 => '推荐', 4 => '海边', 8 => '高山湖泊', 16 => '美女'/*, 32 => '比拼赛'*/, 64 => '美食', 128 => '古镇', 256 => '城市风景'), 'top_count' => 3);
$cfg['wb_youji_format'] = '我刚刚发表了咱们一起去__SPOTS__的游记《__TITLE__》，快来围观啊，亲们~__LINK__';
$cfg['wb_youji_help'] = '<div class="author"><span><em >__USER__</em></span><span>游记发布成功！</span></div><p>现在就发表微博通知朋友，让TA们一起来围观你的游记吧！</p><p>小编会根据评论数和喜欢数，推荐你的游记哦！</p>';
$cfg['yj_tpl_ex_max'] = 9;
//优先选择组合序列
$cfg['yj_tpl_ex'] = array(
	'222222222' => array(
		'3,3/222_1|3,3/222_2|3,3/222_1'
	) ,
	'222222' => array(
		'3,3/222_2|3,3/222_1'
	) ,
	'22222' => array(
		'3,3/222_2|2,2/22',
		'2,2/22|3,3/222_2',
		'3,3/222_1|2,2/22',
		'2,2/22|3,3/222_1'
	) ,
	'1112' => array(
		'4/1112_1',
		'4/1112_2'
	) ,
	'1221' => array(
		'4/1221_1',
		'4/1221_2'
	) ,
	'2111' => array(
		'4/2111_1'
	) ,
	'2221' => array(
		'4/2221_1',
		'4/2221_2'
	) ,
	'1211' => array(
		'4/1211_1'
	) ,
	'1121' => array(
		'4/1121_1'
	) ,
	'111' => array(
		'3/111'
	) ,
	'112' => array(
		'3/112'
	) ,
	'121' => array(
		'3/121'
	) ,
	'122' => array(
		'3/122',
		'3/122_2'
	) ,
	'211' => array(
		'3/211'
	) ,
	'212' => array(
		'3/212_1',
		'3/212_2'
	) ,
	'221' => array(
		'3/221_1',
		'3/221_2'
	) ,
	'222' => array(
		'3/222_1',
		'3/222_2'
	) ,
	'11' => array(
		'2/11'
	) ,
	'12' => array(
		'2/12'
	) ,
	'21' => array(
		'2/21'
	) ,
	'22' => array(
		'2/22'
	) ,
	'1' => array(
		'1/1'
	),
	'2' => array(
		'1/1'
	)
);
///分享分组配置
$cfg['wb_share']=array("SYSTEM_AUTO" => 1,//系统自动发布的微博
					   "FM_SELF" => 2,//'自己足迹分享'
					   "SHARE_BY_OTHER" => 3,//'我微博分享别人的游记',
					   "YOUJI_PIC"=>4,//'图片分享',
					   "SHARE_BY_SELF" => 5,//'自己转发'
					   "FM_OTHER" => 6//'他人足迹分享'
					   );

///全局控制是否检查referer
define('CHECK_REFERER',TRUE);
///允许访问js的来源地址
if(XWB_SERVER_ENV_TYPE == 'sae') {
	if(XWB_SAE_TYPE == 'test') {
		$cfg['allow_referer'] = array('vyjsitetest.appsina.com');
	}else{
		$cfg['allow_referer'] = array('gd.ziyou.com');
	}
}else{
	$cfg['allow_referer'] = array('*.admin.sg.com');
}
//忽略检查来源的js控制器白名单
$cfg['ignoreReferer'] = array('jsApi/youjiApi.uploadPhoto','jsApi/youjiApi.shareYouji', 'jsApi/experienceApi.*','jsApi/postcardApi.upload','jsApi/postcardApi.save');
//首页热门游记推荐设置，fresh_time-更新时间，new_count-每次更新元素数目，count-首页显示游记数
$cfg['home_recom_youji_setting'] = array('fresh_time' => 3600, 'new_count' => 3, 'count' => 20);
//景点经验类型
$cfg['spots_tips_type'] = array(/*1=>'其它',*/ 2=>'热门', 4=>'出行季节&天气', 16 => '出行准备', 8=>'出行交通', 26 => '出行线路', 6=>'景点', 18 => '美食', 20 => '住宿', 22 => '购物', 24 => '娱乐项目', 10=>'特色节庆', 12=>'游玩心得', 14=>'负面信息');
//所有评论类型
$cfg['api_comments_type'] = array('youji' => '游记', 'feed' => '微博', 'postcard' => '明信片', 'timeline' => 'timeline', 'topic' => '小组话题');
//旅行经验类型
$cfg['exp_type'] = $cfg['spots_tips_type'];
//链接管理分类
$cfg['links_type'] = array(1=>'自游动态', 2=>'玩转福利社', 3=>'公告'); //1:自游动态 2:玩转福利社 3:公告
//footer输出配置
$cfg['footer_outputContent'] = array("<script type=\"text/javascript\">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20544241-9']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>");
//游记标签
$cfg['youji_tags'] = array(
							'location' => array('name' => '地点', 'list' => array('周边', '国内', '国外')),
							'stroke' => array('name' => '行程', 'list' => array(1=>'一日游', 2=>'二日游', 3=>'三日至一周', 8=>'一周以上')),
							'theme' => array('name' => '主题游', 'list' => array('亲子乐', '阳光海滩', '乡村', '历史人文', '温泉', '风景摄影', '感受刺激', '美食小吃', '祈福', '拓展', '登山', '漂流', '购物', '蜜月', '徒步', '骑马', '高尔夫', '垂钓', '赏花', '避暑', '露营', '攀岩', '划船', '滑雪', '潜水')),
							'style' => array('name' => '景点类型', 'list' => array('休闲公园', '主题游乐园', '海滩岛屿', '农庄', '度假村', '山峰', '湖泊', '温泉', '园林', '历史建筑', '寺庙', '道观', '洞穴', '博物馆', '故/旧居', '古镇', '河流', '瀑布', '泉潭', '教堂', '学校', '田野/花圃', '桥', '广场', '石窟', '自然保护区', '遗址', '碑塔亭楼', '现代建筑', '村落民居', '草原', '宫殿', '沙漠', '陵墓', '街道', '峡谷', '森林', '冰川', '城堡', '沼泽', '其它')),
							'manner' => array('name' => '方式', 'list' => array('自驾', '公交', '自行车', '徒步', '其他'))
						);

// 达人配置
$cfg['show_cfg'] = array(
	'special' 	=> array(1=>array('id'=>1, 'name'=>'明星鱼鱼'), 2=>array('id'=>2,'name'=>'每日推荐')),
	'list' 		=> array(16=>array('id'=>16,'name'=>'明星鱼鱼'), 17=>array('id'=>17,'name'=>'草根鱼鱼')),
	'page' 		=> array(30=>array('id'=>30,'name'=>'达人首页'), 31 => array('id' => 31, 'name' => '全站首页'))
);